import { Controller, Get } from '@nestjs/common';
import { AppService } from './app.service';
import { RequireLogin, RequirePermission, UserInfo } from 'src/custom.decorator';
@Controller()
export class AppController {
  constructor(private readonly appService: AppService) {}

  @Get()
  getHello(): string {
    return this.appService.getHello();
  }

  // @Get('aaa')
  // @RequireLogin()
  // @RequirePermission('ddd')
  // aaaa(@UserInfo('username')username: string, @UserInfo() userInfo) {
  //   console.log(username,'🍋')
  //   console.log(userInfo,'🍋')
  //   return 'aaa';
  // }

  // @Get('bbb')
  // bbbb() {
  //   return 'aaa';
  // }
}
